//
// Created by Administrator on 2021/9/29.
//

#include "String.h"
String::String() {

}

String::String(const std::string& s){
    this->self = s;
}


String& String::operator=(const char * s) {
    this->self = s;
}

void String::operator+=(const char *s) {
    this->self +=  s;
}

void String::operator+=(const std::string &s) {
    this->self +=  s;
}

void String::operator+=(const String &s) {
    this->self +=  s.self;
}

const char *String::c_str() {
    return this->self.c_str();
}
